import {GATEWAY_AXIOS} from "../axios.js";
import {apiPrefixFormat} from "../../util/project.js";

// GET - 查询指定角色的全部菜单ID列表
export function listMenuIdsApi(id) {
    return GATEWAY_AXIOS.get(`${apiPrefixFormat('role')}/listMenuIds/${id}`)
}

// PUT - 修改指定角色的菜单
export function updateMenusApi(params) {
    return GATEWAY_AXIOS.put(`${apiPrefixFormat('role')}/updateMenus`, params)
}